import { createApp } from 'vue';
import App from './App.vue';
// svg
import 'virtual:svg-icons-register';
// quasar组件库
import { Quasar, Notify, Dialog } from 'quasar';
import quasarLang from 'quasar/lang/zh-CN';
import 'quasar/src/css/index.sass';
// 图标库
import '@quasar/extras/material-icons/material-icons.css';
// 用于注册全局组件的插件
import globalComponent from './components/index';
// 全局样式
import './styles/index.scss';
// 路由模块
import router from './router/index.ts';
// pinia仓库
import pinia from './store/index';
// 全局路由前置守卫
import './permission.ts';

const app = createApp(App);

app.use(Quasar, {
  plugins: { Notify, Dialog },
  lang: quasarLang
});
app.use(globalComponent);
app.use(pinia);
app.use(router);

app.mount('#app');
